home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / SprocketInvaders / Source / SprocketInvaders.h < prev   
Encoding:
Text File  |  2000-09-28  |  2.7 KB  |  104 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SprocketInvaders.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (cjd)    Chris De Salvo
  21.  
  22.     Change History (most recent first):
  23.  
  24.        <SP5>     1/29/99    cjd        Moved gCDAudio to this file.
  25. */
  26.  
  27. //•    ------------------------------------------------------------------------------------------    •
  28. //•
  29. //•    Copyright © 1996 Apple Computer, Inc., All Rights Reserved
  30. //•
  31. //•
  32. //•        You may incorporate this sample code into your applications without
  33. //•        restriction, though the sample code has been provided "AS IS" and the
  34. //•        responsibility for its operation is 100% yours.  However, what you are
  35. //•        not permitted to do is to redistribute the source as "DSC Sample Code"
  36. //•        after having made changes. If you're going to re-distribute the source,
  37. //•        we require that you make it clear in the source that the code was
  38. //•        descended from Apple Sample Code, but that you've made changes.
  39. //•
  40. //•        Authors:
  41. //•            Chris De Salvo
  42. //•
  43. //•    ------------------------------------------------------------------------------------------    •
  44.  
  45. #ifndef __SPROCKETINVADERS__
  46. #define __SPROCKETINVADERS__
  47.  
  48. //•    ------------------------------    Includes
  49.  
  50. #include "GameObject.h"
  51. #include "Particles.h"
  52.  
  53. //•    ------------------------------    Public Definitions
  54.  
  55. #define kNumEnemyRows                5
  56. #define kNumEnemyColumns            11
  57.  
  58. #define kNumEnemies                    (kNumEnemyRows * kNumEnemyColumns)
  59.  
  60. #define kEnemyMovingRight            1
  61. #define kEnemyMovingLeft            2
  62. #define kEnemyDropping                3
  63.  
  64. //•    ------------------------------    Public Types
  65. //•    ------------------------------    Public Variables
  66.  
  67. extern Boolean gCDAudio;
  68.  
  69. extern Boolean gGameInProgress;
  70. extern Boolean gTwoPlayers;
  71. extern Boolean gNetPlay;
  72.  
  73. extern GameObjectPtr gEnemyList;
  74. extern GameObjectPtr gEnemyShotList;
  75. extern GameObjectPtr gPlayerList;
  76. extern GameObjectPtr gGreenPlayerShotList;
  77. extern GameObjectPtr gRedPlayerShotList;
  78. extern GameObjectPtr gMiscObjectList;
  79. extern UInt32 gEnemyTask;
  80. extern SInt32 gEnemiesChangeDirection;
  81. extern SInt32 gEnemyVelocity;
  82. extern UInt32 gNumEnemies;
  83. extern UInt32 gEnemyLevel;
  84. extern UInt32 gNumEnemiesProcessed;
  85. extern UInt32 gNumRedPlayerLives;
  86. extern UInt32 gNumGreenPlayerLives;
  87.  
  88. //•    ------------------------------    Public Functions
  89.  
  90. #ifdef __cplusplus
  91. extern "C" {
  92. #endif
  93.  
  94. extern void InitNewGame(UInt32 wave);
  95. extern void GameLoop(void);
  96. extern void PlayerShoot(GameObjectPtr whichPlayer);
  97. extern void EnemyShoot(GameObjectPtr go);
  98. extern void AddParticles(short x, short y, ObjectKind kind);
  99.  
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103.  
  104. #endif